﻿<Window x:Class="Road3App.Views.EditWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Width="auto" Height="auto" SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        
        <Grid Grid.Row="0" Name="PlaceHolder" Margin="10"/>
        
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
            <StackPanel.Resources>
                <Style TargetType="Button" x:Key="ButtonStyle">
                    <Setter Property="Width" Value="100"/>
                    <Setter Property="Height" Value="30"/>
                    <Setter Property="Margin" Value="0,10,10,10"/>
                </Style>
            </StackPanel.Resources>
            <Rectangle Width="10"/>
            <Button Content="OK" Name="OkButton" Style="{StaticResource ButtonStyle}" Click="OkButton_Click"/>
            <Button Content="Cancel" Name="CancelButton" Style="{StaticResource ButtonStyle}" Click="CancelButton_Click"/>
        </StackPanel>
    </Grid>
</Window>
